This code will load the model information, generate the model definition, and run the model estimation using FSL


In [1]:
import nipype.algorithms.modelgen as model   # model generation
from  nipype.interfaces import fsl, spm   
from nipype.interfaces.base import Bunch
import os,json,glob,sys
import numpy
import nibabel
import nilearn.plotting
%matplotlib inline
import matplotlib.pyplot as plt

datadir='/home/vagrant/data/ds000114_R2.0.1/'
    
results_dir = os.path.abspath("../../results")
if not os.path.exists(results_dir):
    os.mkdir(results_dir)

from nipype.caching import Memory
mem = Memory(base_dir='.')

print('Using data from',datadir)


Using data from /home/vagrant/data/ds000114_R2.0.1/
/home/vagrant/miniconda3/lib/python3.5/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
  "This module will be removed in 0.20.", DeprecationWarning)

In [2]:
from bids.grabbids import BIDSLayout
layout = BIDSLayout(datadir)
layout.get(type="bold", task="fingerfootlips", session="test", extensions="nii.gz")[0].filename


Out[2]:
'/home/vagrant/data/ds000114_R2.0.1/sub-01/ses-test/func/sub-01_ses-test_task-fingerfootlips_bold.nii.gz'

In [3]:
import pandas as pd
events = pd.read_csv(os.path.join(datadir, "task-fingerfootlips_events.tsv"), sep="\t")
events


Out[3]:
onset duration weight trial_type
0 10 15.0 1 Finger
1 40 15.0 1 Foot
2 70 15.0 1 Lips
3 100 15.0 1 Finger
4 130 15.0 1 Foot
5 160 15.0 1 Lips
6 190 15.0 1 Finger
7 220 15.0 1 Foot
8 250 15.0 1 Lips
9 280 15.0 1 Finger
10 310 15.0 1 Foot
11 340 15.0 1 Lips
12 370 15.0 1 Finger
13 400 15.0 1 Foot
14 430 15.0 1 Lips

In [4]:
for trial_type in events.trial_type.unique():
    print(events[events.trial_type == trial_type])


    onset  duration  weight trial_type
0      10      15.0       1     Finger
3     100      15.0       1     Finger
6     190      15.0       1     Finger
9     280      15.0       1     Finger
12    370      15.0       1     Finger
    onset  duration  weight trial_type
1      40      15.0       1       Foot
4     130      15.0       1       Foot
7     220      15.0       1       Foot
10    310      15.0       1       Foot
13    400      15.0       1       Foot
    onset  duration  weight trial_type
2      70      15.0       1       Lips
5     160      15.0       1       Lips
8     250      15.0       1       Lips
11    340      15.0       1       Lips
14    430      15.0       1       Lips

In [5]:
events[events.trial_type == 'Finger'].duration


Out[5]:
0     15.0
3     15.0
6     15.0
9     15.0
12    15.0
Name: duration, dtype: float64

In [13]:
source_epi = layout.get(type="bold", task="fingerfootlips", session="test", extensions="nii.gz")[5]

confounds = pd.read_csv(os.path.join(datadir, "derivatives", "fmriprep", 
                                        "sub-%s"%source_epi.subject, "ses-%s"%source_epi.session, "func", 
                                        "sub-%s_ses-%s_task-fingerfootlips_bold_confounds.tsv"%(source_epi.subject,
                                                                                                                           source_epi.session)),
           sep="\t", na_values="n/a")

info = [Bunch(conditions=['Finger',
                          'Foot',
                          'Lips'],
              onsets=[list(events[events.trial_type == 'Finger'].onset-10),
                      list(events[events.trial_type == 'Foot'].onset-10),
                      list(events[events.trial_type == 'Lips'].onset-10)],
              durations=[list(events[events.trial_type == 'Finger'].duration),
                          list(events[events.trial_type == 'Foot'].duration),
                          list(events[events.trial_type == 'Lips'].duration)],
             regressors=[list(confounds.FramewiseDisplacement.fillna(0)[4:]),
                         list(confounds.aCompCor0[4:]),
                         list(confounds.aCompCor1[4:]),
                         list(confounds.aCompCor2[4:]),
                         list(confounds.aCompCor3[4:]),
                         list(confounds.aCompCor4[4:]),
                         list(confounds.aCompCor5[4:]),
                        ],
             regressor_names=['FramewiseDisplacement',
                              'aCompCor0',
                              'aCompCor1',
                              'aCompCor2',
                              'aCompCor3',
                              'aCompCor4',
                              'aCompCor5'],
              amplitudes=None,
              tmod=None,
              pmod=None)
       ]

skip = mem.cache(fsl.ExtractROI)
skip_results = skip(in_file=os.path.join(datadir, "derivatives", "fmriprep", 
                                        "sub-%s"%source_epi.subject, "ses-%s"%source_epi.session, "func", 
                                        "sub-%s_ses-%s_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz"%(source_epi.subject,
                                                                                                                           source_epi.session)),
                     t_min=4, t_size=-1, output_type="NIFTI")
s = model.SpecifySPMModel()
s.inputs.input_units = 'secs'
s.inputs.functional_runs = skip_results.outputs.roi_file
s.inputs.time_repetition = layout.get_metadata(source_epi.filename)["RepetitionTime"]
s.inputs.high_pass_filter_cutoff = 128.
s.inputs.concatenate_runs=False
s.inputs.output_units='secs'
s.inputs.subject_info = info
specify_model_results = s.run()
specify_model_results.outputs


170216-18:24:41,205 workflow INFO:
	 Executing node 90e73a4efdfb9677c5c883f59a536b34 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/90e73a4efdfb9677c5c883f59a536b34
170216-18:24:41,215 workflow INFO:
	 Collecting precomputed outputs
Out[13]:
session_info = [{'cond': [{'name': 'Finger', 'duration': [15.0, 15.0, 15.0, 15.0, 15.0], 'onset': [0.0, 90.0, 180.0, 270.0, 360.0]}, {'name': 'Foot', 'duration': [15.0, 15.0, 15.0, 15.0, 15.0], 'onset': [30.0, 120.0, 210.0, 300.0, 390.0]}, {'name': 'Lips', 'duration': [15.0, 15.0, 15.0, 15.0, 15.0], 'onset': [60.0, 150.0, 240.0, 330.0, 420.0]}], 'hpf': 128.0, 'regress': [{'name': 'FramewiseDisplacement', 'val': [0.16517459999999987, 0.16393550000000012, 0.060880000000000101, 0.099227999999999969, 0.092637999999999998, 0.058773500000000013, 0.08213899999999992, 0.07065919999999988, 0.059915799999999887, 0.040129600000000071, 0.087915000000000007, 0.53722140000000007, 0.37261459999999996, 0.15609944999999992, 0.20615815000000001, 0.11306650000000006, 0.78650280000000006, 0.33794455000000001, 0.19718554999999999, 0.081222700000000064, 0.047395350000000003, 0.070689999999999906, 0.054125800000000064, 0.15142230000000007, 0.044283699999999912, 0.10846885000000006, 0.13043414999999989, 0.11277090000000012, 0.078479199999999971, 0.068545650000000014, 0.090304000000000023, 0.050125399999999966, 0.10289699999999996, 0.097612349999999959, 0.15440522999999992, 0.16629848000000008, 0.047173899999999921, 0.075661450000000019, 0.060555500000000026, 0.11385728499999992, 0.035190245000000016, 0.034913249999999889, 0.16059369999999998, 0.053874784999999939, 0.13936081500000005, 0.069495279999999979, 0.11866974000000002, 0.22484146499999999, 0.16623668500000002, 0.097093499999999958, 0.071083899999999992, 0.022817399999999998, 0.11770249999999995, 0.10296874999999993, 0.081075800000000031, 0.069871350000000026, 0.097311499999999981, 0.068844000000000002, 0.046394900000000051, 0.10897365000000001, 0.14090870000000005, 0.11000940000000001, 0.1242501, 0.081413930000000051, 0.11753373000000004, 0.33189583, 0.29748943, 0.099371550000000003, 0.15874460000000001, 0.031603550000000015, 0.072232499999999977, 0.098253499999999994, 0.044037400000000011, 0.077632900000000019, 0.08363969999999997, 0.062188, 0.042488799999999986, 0.070169919999999997, 0.066629280000000013, 0.049232600000000022, 0.11020055400000001, 0.084599653999999969, 0.1351793, 0.097900799999999968, 0.76502095999999986, 0.055104880000000016, 0.10674817000000003, 0.07610355000000002, 0.054521396999999992, 0.15498364700000006, 0.12887514000000005, 0.088985495000000012, 0.077271466000000011, 0.039910559000000026, 0.13350717999999998, 0.071568700000000041, 0.15256744, 0.077055039999999977, 0.064590849999999991, 0.079980369999999981, 0.13742771000000004, 0.45459030000000011, 0.34766205000000011, 0.089609850000000019, 0.068456299999999942, 0.12760249000000001, 0.21788115999999999, 0.066572549999999994, 0.076563999999999979, 0.085570700000000069, 0.049431350000000013, 0.062972300000000009, 0.12426387, 0.25134267999999993, 0.23470850000000004, 0.29123424999999997, 0.13132495, 0.14487375000000008, 0.090303149999999957, 0.040195349999999984, 0.13619029999999999, 0.10077524999999997, 0.030785014999999964, 0.043871825600000053, 0.092358780600000023, 0.095606379999999963, 0.50843034999999992, 0.38368105000000002, 0.26847809999999994, 0.16101379999999998, 0.055101251500000031, 0.38141630150000011, 0.07587644999999997, 0.07810818999999998, 0.085004510000000061, 0.071288850000000001, 0.16647020000000001, 0.48020154999999998, 0.52059655000000005, 0.11314972000000002, 0.10985348, 0.0822349, 0.027236200000000002, 0.075436249999999969, 0.049020550000000031, 0.064593599999999987, 0.055595855, 0.10057375500000004, 0.16430800000000007, 0.12434174999999995, 0.11541970000000006, 0.089557699999999976, 0.10095553, 0.15160693, 0.065574600000000011, 0.14775870000000002, 0.37812014999999999, 0.17141424999999999, 0.51002879999999995, 0.38465404229999994, 0.2141633077, 0.20916519, 0.040236029999999964, 0.13361334000000002, 0.11888422, 0.079965549999999969, 0.037992100000000001, 0.093608399999999994, 0.097055589999999969, 0.069386785000000006, 0.078603724999999999, 0.22082002000000001, 0.16740896999999999, 0.092821599999999976, 0.036417100000000015, 0.064079649999999974, 0.12254188000000002, 0.13889573, 0.087809074999999973, 0.0]}, {'name': 'aCompCor0', 'val': [-0.029787337399999999, -0.027126343000000001, -0.051203401099999997, -0.029387428700000006, -0.0125039872, -0.032945181099999998, -0.046301911000000001, -0.019149111699999999, -0.00022791200000000001, -0.016521002, -0.021603886100000001, -0.021797721999999999, -0.019423610099999999, -0.035296345899999998, -0.0520776238, -0.0479258901, -0.041302992699999999, -0.023178171599999998, -0.0059673935999999999, -0.0090065806999999991, -0.0158546169, -0.011554428500000002, -0.0170745268, -0.0014300235000000001, -0.016433731699999999, -0.036652581099999998, -0.025225791099999999, -0.0086260180000000009, 0.00089371890000000003, -0.0140987341, -0.0111827943, -0.0051167748000000004, -0.0013633545000000002, 0.0052061965999999999, 0.0112013254, 0.0159769869, -0.0099001982999999995, -0.0118203708, -0.016784696599999999, -0.0190336862, 0.0074874809999999998, 0.00072439240000000005, -0.01266427, -0.043328152699999997, -0.0134611448, -0.0046127210000000002, 0.0087336259999999995, 0.0055675204000000004, -0.0033516797, -0.039493255099999999, -0.023383822799999999, -0.020578691199999999, -0.017104728700000002, -0.017042326100000001, -0.0171798339, -0.011711685600000001, -0.0151463233, -0.0066473607000000004, 0.028155579100000001, 0.014461842000000001, -0.0057811999999999994, -0.030671530200000002, 0.0233856541, 0.027137187600000001, 0.0027355431, -0.029965167400000006, -0.041082093100000001, 0.032954683800000002, 0.036213154300000001, 0.0068314183999999998, -0.0145182781, -0.0234055284, -0.0056675579, -0.0091387602000000002, -0.021040238500000003, -0.0190979854, -0.030881145700000001, -0.040717703100000002, -0.0070509555000000017, 0.0096555003999999993, 0.0022529939999999999, -0.0083846658999999994, 0.0006370414, -0.0018562305999999999, -0.0083701631999999991, -0.0095969987999999992, -0.024719947499999999, -0.018858894399999999, -0.020594366100000001, -0.036767015700000003, -0.0042097018, -0.012692601699999998, 0.013887185999999999, 0.028031830899999999, 0.025839508399999999, -0.0228585826, -0.031313985799999999, -0.0194732273, 0.0143758514, 0.0048750848999999999, 0.0033111809999999998, -0.0081179001000000004, -0.013139334900000001, 0.0187201179, 0.036244090899999998, 0.0087434086000000005, -0.027991180599999999, -0.032419889799999997, -0.0148870284, -0.0046234036999999997, -0.035570123199999998, 0.0030580484000000004, -0.0098039713000000004, -0.031142192499999999, -0.034851765899999998, -0.019690035200000001, -0.0010344396, 0.017458019799999999, 0.030648072799999999, -0.0001594919, -0.011257111699999999, 0.0028793618999999999, -0.0104290393, -0.021593099800000001, -0.0028101565, 0.00029135240000000001, 0.013979288100000001, -0.010283092400000001, 0.021765751699999999, 0.032106944700000001, 0.0278205742, -0.0068209759999999994, -0.0041961221000000005, 0.0131831525, 0.039940756800000005, 0.048781098799999999, 0.033303576299999998, 0.013995385500000001, 1.00128e-05, 0.011426144900000001, 0.025093135200000002, 0.0154904073, 0.0160871413, 0.0065396095999999994, 0.0073776600000000003, 0.0040491609000000003, 0.0085823131000000007, 0.0130497748, 0.0031480835, 0.0102042212, 0.022641664300000003, 0.0020726693000000002, -0.0074258218000000003, 0.0198901901, 0.0137436678, 0.019989295800000001, -0.0123828047, -0.0055813805000000001, 0.0031051718000000002, -0.0073085403000000002, 0.019825193200000001, 0.007844199100000001, -0.0016119959000000001, 0.0045174580999999998, -0.0052795825999999999, 0.0035846697000000002, 0.0026223156999999999, -0.0072809410999999996, -0.0188892908, -0.021967029300000003, -0.0074360664, 0.016340041200000002, 0.0092994983999999999, 0.0050949348999999996, 0.0101891308, 0.018061509999999999, -0.0030783376999999998, 0.0040098661000000004, 0.0040712748, 0.0051473747000000004]}, {'name': 'aCompCor1', 'val': [-0.11578609550000001, -0.11033201049999999, -0.13184946450000001, -0.1083028318, -0.14154735710000002, -0.097049770199999996, -0.078814153400000003, -0.033135085500000001, -0.065707416699999993, -0.056181931800000001, 0.0037981006999999998, -0.045334739200000002, -0.037686229299999999, -0.066403508, -0.014811630500000001, -0.055983364400000006, -0.030131254400000002, -0.092650565500000004, -0.057167333000000001, -0.062745490400000006, -0.095996972900000005, -0.081538373999999997, -0.0595359684, -0.090958995000000001, -0.074927759699999999, -0.075817856900000008, -0.065191184900000004, -0.080211726600000005, -0.058069516699999997, -0.044871359800000003, -0.025595149300000002, -0.031200974400000001, -0.025603879500000003, -0.044005765099999997, 0.010709205899999999, -0.08651006289999999, -0.0313382829, -0.053144728000000002, -0.040695838400000003, -0.056464030900000003, -0.018979006199999999, -0.010694827299999999, -0.041911852400000005, -0.0256989904, -0.016764023200000002, -0.012492543700000001, 0.017311740400000001, 0.012392200500000001, 0.011430644199999999, 0.0056269149999999997, 0.0037507486000000001, 0.021414425899999999, 0.0033740032000000001, 0.022157377200000002, 0.072229329299999992, 0.076203672400000005, 0.083738073199999999, 0.066722911600000004, 0.098248535600000006, 0.089100361300000014, 0.0647743286, 0.055879892200000003, 0.081797537000000003, 0.097366012299999999, 0.070988143599999998, 0.1095221712, 0.038573830199999999, 0.075535826100000009, 0.1043039211, 0.088186438200000009, 0.094055337200000005, 0.10001068809999999, 0.1001776481, 0.087814330800000007, 0.069547605099999993, 0.080782699499999999, 0.0497086126, 0.069903318499999992, 0.094297064900000005, 0.10313191770000001, 0.1069187456, 0.098721393399999996, 0.092960586499999998, 0.1047134316, 0.089920491800000002, 0.083591216799999993, 0.093164941700000004, 0.097155287100000029, 0.1090778017, 0.083052290799999998, 0.099911218699999998, 0.1090115426, 0.1002036025, 0.1051859901, 0.085804895399999997, 0.070457387400000002, 0.094383590000000003, 0.091018304800000005, 0.079144049399999999, 0.093223580900000005, 0.074378128700000004, 0.062544964999999994, 0.076695570300000002, 0.068709455000000003, 0.070666179800000006, 0.083111602399999998, 0.0831870901, 0.065317177199999993, 0.098568640799999996, 0.1138259428, 0.092283988600000005, 0.13315728960000001, 0.084943374299999999, 0.1046313691, 0.054119090799999998, 0.045099328700000003, 0.030244684399999999, 0.012823961199999999, 0.001153875, 0.0200313014, 0.069875332999999998, 0.046684835600000002, 0.051367755799999998, 0.089491664200000001, 0.071209344199999997, 0.032757561300000002, 0.026681101499999998, 0.0057181161999999997, -0.0449169918, -0.033839602400000002, -0.0072282469999999984, -0.034467928600000003, 0.023200504100000002, 0.026235793600000001, -0.0044818636999999998, 0.021459207099999999, -0.0064161162000000004, 0.036030704199999999, -0.011061182899999999, -0.067271571900000007, -0.038878969100000001, -0.071556390300000008, -0.053168290999999999, -0.0748732909, -0.040954178799999998, -0.048706621500000005, -0.024741187400000003, -0.0083679918999999998, -0.038465797400000001, -0.056105933900000002, -0.076491032900000006, -0.0486496134, -0.056590667699999986, -0.031246646699999998, -0.0477910603, -0.0271649443, -0.034462728300000002, -0.093014857899999998, -0.048675283200000002, -0.034235977200000003, -0.029940166000000001, -0.027637978399999999, -0.049107534699999997, -0.077140022699999991, -0.057391339100000001, -0.1069909416, -0.1128300461, -0.10240887379999999, -0.093708472099999995, -0.086002103800000007, -0.11304430209999999, -0.1070386651, -0.1025451473, -0.098752571799999994, -0.089242138000000013, -0.1116983156, -0.1286271957, -0.1102951774, -0.090843521999999996, -0.118746754]}, {'name': 'aCompCor2', 'val': [-0.043665168600000005, -0.023456332399999998, -0.111557805, -0.089852424800000011, 0.020268793300000001, -0.070056082500000005, -0.13751253520000001, -0.0688094385, 0.049053064, -0.0089621049000000001, -0.058545419600000002, -0.0051941388999999999, 0.013400086, -0.058772034700000003, -0.099423656999999999, 0.018319964099999999, -0.032620704900000005, 0.071989016399999994, 0.079231102900000003, 0.035226325500000003, 0.025298902000000002, 0.029206158900000001, 0.0023409002, 0.019851566300000002, -0.014889274100000001, -0.054149570700000003, -0.038566477299999999, 0.029424544800000001, 0.074693129400000002, 0.062337480200000003, 0.037235119400000002, 0.068623961900000002, 0.082706671400000001, 0.1035792001, 0.1087149622, 0.0963407233, 0.0293220498, 0.0337554495, 0.012204878799999999, -0.026385650399999998, 0.098574713999999994, 0.099156304599999995, 0.043832177799999997, -0.045191459100000005, -0.0037288979, 0.081102371699999995, 0.099170194599999997, 0.060068886699999997, 0.069264459, -0.091921315300000001, -0.096615101699999997, -0.071791723899999993, -0.056051367999999997, -0.0212800517, -0.032656801700000002, 0.0017030395999999999, -0.0225531034, 0.036743984, 0.0785967271, 0.085955064999999997, 0.020236456900000001, -0.0552988814, 0.1237584675, 0.15628387869999999, 0.081089345300000004, -0.068737483899999993, -0.1035512296, 0.1291314247, 0.1639554902, 0.087722150200000001, 0.015497091100000001, -0.0313658333, -0.0047461561000000001, -0.025719046299999999, -0.037287955300000002, -0.041648262599999999, -0.032525126699999997, -0.093925459700000005, -0.0212541428, 0.037226790799999999, 0.033569019800000002, 0.0058225723000000004, -0.0090722948999999997, -0.0288112653, -0.0055826785000000004, -0.094358979999999995, -0.1072290248, -0.10299388600000001, -0.095187802000000002, -0.123070209, -0.082477436399999993, -0.070556431099999997, 0.057542889799999997, 0.087661770500000014, 0.1317806889, -0.092239402999999998, -0.12903026770000001, -0.077387913700000005, 0.033607365299999997, 0.0071549218999999997, -0.0057052679000000007, -0.010611686499999998, -0.058048979400000013, 0.044008441299999999, 0.14705772449999999, 0.082967952900000003, -0.035898470000000002, -0.1030555447, -0.0091946987999999997, 0.0061509567000000006, -0.093117539599999993, -0.0470495701, -0.061059726699999997, -0.17514563759999999, -0.13765940300000001, -0.1090784243, -0.0018178946, 0.082412683600000008, 0.069640501300000004, 0.060713937099999997, 0.013354006000000002, -0.0351947632, -0.065259077200000001, -0.063526000999999999, -0.017872758400000001, 0.0048745390999999994, 0.076179711900000002, -0.079807353600000006, 0.1013434805, 0.15062043429999999, 0.14653245509999999, 0.0027660550999999999, 0.0050799779999999998, 0.034754966300000002, 0.16529902960000001, 0.189010758, 0.13000816339999999, 0.062552986399999996, 0.014708109699999999, 0.0043166204000000003, 0.056987154200000001, 0.1095495032, 0.0237509144, 0.0073927202999999999, 0.033764830499999995, 0.036187904100000001, 0.067494682400000006, 0.033898066900000003, 0.0446869243, 0.032630381200000003, 0.050287891900000006, 0.0033095849999999999, -0.090864377999999996, 0.0324372718, 0.023764179999999999, 0.0203472338, -0.090009762100000029, -0.13665239099999998, -0.012958247500000001, -0.066000156099999999, 0.065349927000000002, 0.026656258299999999, -0.00084562299999999999, 0.039218171099999997, -0.0523503409, -0.061417817899999998, -0.041345517999999998, -0.054234041699999999, -0.106185896, -0.14667681869999999, -0.1004454821, 0.036625834900000001, -0.07266498099999999, 0.0053669273000000002, -0.0153679018, 0.045926711699999997, -0.060106823500000003, -0.051659126100000001, -0.028506134900000001, 0.047404745800000002]}, {'name': 'aCompCor3', 'val': [0.075484539400000009, 0.051970740000000001, 0.1081095066, 0.058485828600000012, 0.07509964429999999, 0.078467751500000002, 0.08569157849999999, 0.031383950000000001, 0.107092983, 0.081163667800000006, 0.016514192, 0.018845444900000001, 0.0058696238999999999, 0.034631121399999999, -0.029372344900000007, 0.0026657746000000003, -0.029178926300000001, 0.049222093500000001, -0.012602898100000001, 0.0049887038, 0.068243836200000005, 0.042205456799999999, 0.0395021157, -0.032707368600000002, 0.016506371699999998, 0.00051754209999999999, -0.0097818343000000002, 0.0067880667000000004, -0.038791527499999999, -0.0062421559999999996, -0.054415894800000003, -0.033569113800000001, -0.077847032499999996, -0.042737903000000001, -0.045491804499999997, 0.0036748899000000001, -0.037361994500000002, -0.033058712900000002, -0.0127874219, -0.053061296900000006, -0.087986511400000009, -0.087899171999999998, -0.011856074499999999, -0.013668868799999999, -0.068436166800000003, -0.091519600899999998, -0.052638073100000002, -0.047321748400000002, -0.064420665799999999, -0.095045061099999995, -0.089299780399999987, -0.037877491200000002, -0.1045627708, -0.056433084299999998, -0.11523098900000001, -0.1102722642, -0.0071816982999999999, -0.065964233600000005, -0.1070282558, -0.049884525399999997, -0.080273038099999999, -0.049368531799999997, -0.0192125769, -0.0612922459, -0.078051598200000002, -0.010404421699999999, -0.022326148099999998, -0.064131227599999993, -0.093163928199999996, -0.0017902447999999999, -0.038206398599999997, -0.021230858700000001, 0.0066938414, -0.063842255199999989, -0.1138231214, -0.091482947699999997, -0.045925984900000001, -0.060422803999999997, -0.11528220760000001, -0.066928209699999991, -0.049043913600000003, -0.039479979999999998, -0.02364571, -0.055364891999999999, -0.1172049307, -0.099368592899999997, -0.1057920889, -0.033143603399999999, -0.015954881899999999, -0.059465847500000002, -0.042409538500000003, -0.013116216399999998, 0.0240477344, 0.043119971799999997, 0.025333285800000001, 0.104277439, 0.029985935500000001, 0.030066171100000001, 0.072326588299999994, 0.053612286600000003, 0.10322658480000001, 0.075521283099999989, -0.016219361000000002, 0.064107777800000001, -0.0063349786, 0.052388420599999999, 0.084808665000000005, 0.080719463700000008, 0.039399481299999997, 0.070897079000000002, 0.072733165500000002, 0.063010492000000001, 0.054295482700000001, 0.16498216979999999, 0.15436226419999999, 0.21103221389999999, 0.14999855619999999, 0.1249106054, 0.1390854869, 0.15684560450000001, 0.038908014800000001, 0.15751792980000001, 0.093810383400000003, 0.091865609700000003, 0.044202943299999999, -0.00093279609999999998, 0.033075921100000003, 0.08251327230000001, 0.1533646108, 0.13407653289999999, 0.044328932600000003, 0.1034653161, 0.0072221158999999984, 0.0176752981, 0.0062559915000000004, -0.0026099008999999999, -0.0023552435000000001, 0.081497684900000006, 0.078826838600000004, 0.081149658499999999, 0.018007131900000001, 0.087663654000000008, 0.048206815799999997, 0.094970662799999994, 0.10141340610000001, 0.1082709187, 0.085277269700000005, 0.1009383027, 0.048121372099999997, 0.033451968200000001, 0.073331336299999994, -0.021453555700000002, 0.041625241200000003, -0.050918579200000001, -0.1076689996, -0.036916995000000001, -0.087907701899999996, -0.035880144500000002, -0.067531560599999998, 0.045443701400000001, -0.020995433399999999, 0.033131181799999999, -0.024299832200000003, -0.0470639453, -0.060885063699999999, -0.058055088600000013, -0.081519278099999995, -0.080857174800000001, -0.1376300788, -0.12919356339999999, -0.064867225899999992, -0.0952414969, -0.14166033710000001, -0.054057478499999999, -0.062154847700000002, -0.1211820995, -0.1097194334, -0.1003409601, -0.026750889500000003, -0.13318793369999998]}, {'name': 'aCompCor4', 'val': [0.0320880578, 0.13012074470000001, 0.1412351547, 0.0239499803, 0.078678664400000001, 0.011371399500000001, -0.092331951999999995, -0.034474906999999999, 0.097486598199999996, 0.1187928093, 0.0341760994, 0.019139288300000001, 0.031615493600000003, 0.0066912280000000005, -0.051102704000000006, -0.066266686200000008, -0.097852739300000005, -0.031278092200000003, -0.052582394400000003, -0.0138558104, -0.0039462630999999998, -0.092938341199999996, -0.083598689300000001, 0.023278812699999998, 0.0379015454, -0.040050381099999997, -0.097029811600000002, 0.0040087643000000003, -0.019532535, -0.026924560300000001, -0.074573407800000005, -0.021861287000000004, -0.055592252500000001, 0.016685884299999999, -0.13051911869999999, 0.094632721500000003, 0.0304729005, 0.078458453099999992, 0.013711492800000001, -0.024768567799999999, -0.062481929700000001, -0.054606966799999997, -0.098210559099999997, -0.18844416520000001, -0.069056672099999994, -0.0090246618000000001, -0.082085385900000002, -0.041483315700000002, 0.017857519700000001, 0.092331110300000005, 0.048361529600000001, 0.040752987499999997, 0.0169790093, -0.079752977599999997, -0.046840294099999999, -0.099722404599999995, -0.093294821799999997, -0.18702306639999999, -0.054664912900000001, 0.032164453199999998, 0.11523668500000001, 0.107765267, 0.013433538300000001, -0.037306069900000002, -0.0098343430000000006, -0.044155606200000003, -0.063983731099999996, 0.19781306630000001, 0.19863423120000001, 0.1124642644, 0.088739776899999998, 0.0031341709999999998, 0.0029051559999999999, 0.027395974500000003, 0.06419303400000001, 0.076901128499999999, -0.060590257000000002, -0.19378773969999999, -0.1090319617, -0.053056195700000003, -0.038201207799999998, -0.072944066500000002, -0.075156831600000001, 0.075213080500000001, 0.16961678450000001, 0.13958724089999999, 0.15102600669999999, 0.038705678200000003, -0.1216104053, -0.094228598299999994, -0.12757740480000002, 0.0969349979, -0.031276926000000004, 0.047563873600000001, 0.12814658470000001, 0.17781609550000002, 0.0391234783, 0.048983965499999997, 0.1145872622, 0.12669015559999999, 0.054037607100000003, 0.050529721900000005, 0.072776643000000002, -0.043275403600000005, 0.061133852300000013, 0.040976703599999997, -0.12028452319999999, -0.043665770399999998, -0.1101067377, 0.0128234714, -0.0071412626, 0.035723438199999999, 0.0042124175000000002, 0.086227784700000004, -0.013226508499999999, -0.027042454099999998, -0.0057705958999999998, 0.059085077999999999, -0.013786369099999999, -0.0173913108, -0.0583686229, -0.035490916300000001, 0.067940013499999993, -0.025477052100000001, -0.030548758400000001, -0.1188587201, -0.0103653685, -0.091473465300000001, -0.050732780599999999, -0.041052992400000002, 0.021231042400000004, -0.025864803400000001, -0.032849903100000001, -0.064777377999999997, -0.0296557452, -0.0127340426, 0.056237987599999997, -0.0105221133, 0.097717955600000003, -0.0766329397, -0.057162497600000001, -0.036552425299999997, -0.095863034999999999, -0.069495190900000003, -0.10769519280000001, 0.063843127200000002, 0.030614075599999999, -0.0035967124999999999, -0.013765680400000001, -0.080996548700000004, -0.0343835698, 0.0042741398999999996, -0.048751716200000003, 0.027604365200000001, 0.0017479109, 0.0056497392, -0.011714764000000001, 0.072414487200000002, -0.020521832, 0.027518121800000003, 0.024047936400000001, 0.0063981838000000003, -0.045163770800000003, 0.018078692100000002, -0.0014874802999999999, 0.018070074799999999, 0.0100305651, -0.021246006599999999, -0.0017599950000000001, -0.019624814000000001, 0.038985660999999998, -0.040806490000000001, 0.0103941382, 0.1042369207, 0.1164231901, 0.091340607599999998, 0.076977090099999992, 0.060686367599999999, -0.10734302129999999, -0.0093989581999999999]}, {'name': 'aCompCor5', 'val': [-0.07404618360000001, -0.094020251999999999, -0.072963172199999995, -0.1677090276, -0.063856662999999994, -0.011268755199999999, -0.14657032720000002, -0.1185421913, -0.12507691769999998, -0.029922386200000001, -0.081943743999999999, 0.015444018300000001, -0.10776901699999999, 0.010149702700000001, 0.1105569762, 0.042210747700000002, 0.050000900199999997, 0.056963683000000001, 0.0065846161999999998, 0.065633760999999999, 0.021559569399999999, 0.089590400799999997, 0.092592122700000001, 0.020555357699999999, 0.030659049300000001, 0.062923456799999999, 0.088374990399999992, 0.063374199199999995, 0.10286621460000001, 0.026006781199999999, 0.1016652755, 0.12925180089999999, 0.074957513700000006, -0.042131750900000001, 0.1005681291, 0.030131305300000001, 0.012114333499999999, -0.029943607800000001, 0.043046874399999997, 0.11258079259999999, -0.027162038600000001, -0.039960323700000001, 0.1021708249, -0.013829223200000001, 0.0146285303, 0.032930977200000003, 0.059472780500000003, 0.060133871100000014, 0.0617058022, -0.035562991600000003, 0.035433294500000004, 0.083502180499999995, -0.021148279700000001, 0.091840210000000005, 0.056030184099999998, 0.1645317811, 0.027596403299999999, 0.019580386200000001, -0.1122809864, 0.0066369418000000006, -0.0286048146, -0.0082888687999999999, 0.0194031806, 0.033324777200000003, 0.0090175507999999995, 0.041418941200000003, -0.076096885500000003, -0.014511191, -0.0097917713, 0.043200582199999997, 0.024766574500000003, 0.0507621984, -0.0097589984999999994, 0.072139721599999998, 0.051247928700000001, 0.043820242300000006, -0.1127422933, -0.074076430799999995, -0.12549854939999999, -0.067960280200000001, -0.1124603158, -0.18141500520000001, -0.1181338712, -0.098977975699999998, -0.14436967539999998, 0.0440193116, 0.042738392700000002, 0.032041782799999995, -0.0111130502, -0.1196959125, -0.074692156299999993, 0.095312377399999995, -0.13304515410000001, -0.046426457599999998, -0.053157587100000001, 0.1182480025, 0.032903952400000006, 0.049336148200000006, -0.029137789899999999, 0.072144904400000001, 0.017088169600000001, -0.0415889485, 0.098540582000000002, -0.092894974800000002, -0.1096597321, -0.10471217569999999, -0.032296780800000001, -0.1157751665, -0.050322041100000006, 0.0029802428000000004, 0.043758333500000003, 0.0128351695, 0.022637819399999998, -0.0020479324999999999, 0.026853813800000001, -0.0034875167000000002, 0.0002288619, 0.036449246099999999, 0.118630833, 0.080104838600000006, 0.099757531400000002, 0.10233473849999999, 0.15028291400000002, 0.094273053400000001, 0.050110442900000003, -0.1073879309, -0.089689196799999996, -0.048190511900000003, 0.046369176200000001, 0.045138616300000003, 0.076167955699999998, 0.07360490900000001, 0.028702656300000001, -0.018917997200000002, -0.080417005599999994, -0.015529982499999999, -0.15812108120000001, 0.0229495041, 0.1123836227, -0.076133992900000003, -0.13957697569999999, -0.13450262630000001, -0.080284240000000007, -0.048899282199999998, -0.0331885081, -0.039820128500000003, -0.018381057100000001, 0.066083501900000008, 0.0153182944, -0.0189205741, 0.0395984962, 0.029206376700000002, 0.078240349900000006, -0.075634219799999999, -0.034911722100000001, 0.0228787217, 0.069368218799999992, -0.0156508016, -0.0075922398, -0.0202444073, -0.023300752200000004, 0.0168287531, 0.077331469400000005, 0.056664653200000012, 0.063451734999999995, -0.024576799699999999, -0.016257608999999999, -0.043999974900000002, -0.099474367600000002, -0.032843924699999999, -0.1119562673, -0.1088102588, -0.036089787999999998, -0.061994486799999998, 0.042538110400000002, 0.054300848200000001, 0.071870227300000006, 0.13802269810000001, 0.091616283500000006, 0.058382107900000001]}], 'scans': '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/90e73a4efdfb9677c5c883f59a536b34/sub-06_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii'}]

In [14]:
finger_cond = ['Finger','T', ['Finger'],[1]]
foot_cond = ['Foot','T', ['Foot'],[1]]
lips_cond = ['Lips','T', ['Lips'],[1]]
lips_vs_others = ["Lips vs. others",'T', ['Finger', 'Foot', 'Lips'],[-0.5, -0.5, 1]]
all_motor = ["All motor", 'F', [finger_cond, foot_cond, lips_cond]]

contrasts=[finger_cond, foot_cond, lips_cond, lips_vs_others, all_motor]
    
matlab_cmd = '/home/vagrant/spm12/run_spm12.sh /home/vagrant/mcr/v85/ script'
spm.SPMCommand.set_mlab_paths(matlab_cmd=matlab_cmd, use_mcr=True)

level1design = mem.cache(spm.model.Level1Design)
level1design_results = level1design(interscan_interval = layout.get_metadata(source_epi.filename)["RepetitionTime"],
                                    bases = {'hrf':{'derivs': [0,0]}},
                                    session_info = specify_model_results.outputs.session_info,
                                    model_serial_correlations='AR(1)',
                                    timing_units='secs')

level1design_results.outputs


170216-18:24:42,653 workflow INFO:
	 Executing node d0fc8acdda948ce663ee87e3deb334c7 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/d0fc8acdda948ce663ee87e3deb334c7
170216-18:24:42,668 workflow INFO:
	 Collecting precomputed outputs
Out[14]:
spm_mat_file = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/d0fc8acdda948ce663ee87e3deb334c7/SPM.mat

In [15]:
estimatemodel = mem.cache(spm.model.EstimateModel)
estimatemodel = estimatemodel(estimation_method={'Classical': 1}, 
                              spm_mat_file=level1design_results.outputs.spm_mat_file)
estimatemodel.outputs


170216-18:24:44,594 workflow INFO:
	 Executing node eeceacdf058c01cd9b67720165f53474 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474
170216-18:24:44,598 workflow INFO:
	 Collecting precomputed outputs
Out[15]:
RPVimage = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/RPV.nii
beta_images = ['/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0001.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0002.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0003.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0004.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0005.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0006.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0007.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0008.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0009.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0010.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/beta_0011.nii']
mask_image = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/mask.nii
residual_image = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/ResMS.nii
spm_mat_file = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/eeceacdf058c01cd9b67720165f53474/SPM.mat

In [16]:
estimatecontrasts = mem.cache(spm.model.EstimateContrast)
estimatecontrasts = estimatecontrasts(contrasts=contrasts,
                                      spm_mat_file=estimatemodel.outputs.spm_mat_file,
                                      beta_images=estimatemodel.outputs.beta_images,
                                      residual_image=estimatemodel.outputs.residual_image)
estimatecontrasts.outputs


170216-18:24:45,525 workflow INFO:
	 Executing node 4b2ee7cf0f93c6e576f9d3fc13948665 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665
Out[16]:
con_images = ['/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/con_0001.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/con_0002.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/con_0003.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/con_0004.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/ess_0005.nii']
ess_images = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/ess_0005.nii
spmF_images = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/spmF_0005.nii
spmT_images = ['/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/spmT_0001.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/spmT_0002.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/spmT_0003.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/spmT_0004.nii', '/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/spmF_0005.nii']
spm_mat_file = /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/4b2ee7cf0f93c6e576f9d3fc13948665/SPM.mat

In [17]:
for con_image in estimatecontrasts.outputs.spmT_images:
    nilearn.plotting.plot_glass_brain(nilearn.image.smooth_img(con_image, 8),
                                      display_mode='lyrz', colorbar=True, plot_abs=False, threshold=2.3)



In [18]:
for con_image in estimatecontrasts.outputs.con_images:
    nilearn.plotting.plot_glass_brain(nilearn.image.smooth_img(con_image, 8),
                                      display_mode='lyrz', colorbar=True, plot_abs=False)



In [19]:
copes = {}
for i in range(10):
    source_epi = layout.get(type="bold", task="fingerfootlips", session="test", extensions="nii.gz")[i]

    confounds = pd.read_csv(os.path.join(datadir, "derivatives", "fmriprep", 
                                         "sub-%s"%source_epi.subject, "ses-%s"%source_epi.session, "func", 
                                         "sub-%s_ses-%s_task-fingerfootlips_bold_confounds.tsv"%(source_epi.subject,
                                                                                                                               source_epi.session)),
               sep="\t", na_values="n/a")

    info = [Bunch(conditions=['Finger',
                              'Foot',
                              'Lips'],
                  onsets=[list(events[events.trial_type == 'Finger'].onset-10),
                          list(events[events.trial_type == 'Foot'].onset-10),
                          list(events[events.trial_type == 'Lips'].onset-10)],
                  durations=[list(events[events.trial_type == 'Finger'].duration),
                              list(events[events.trial_type == 'Foot'].duration),
                              list(events[events.trial_type == 'Lips'].duration)],
                 regressors=[list(confounds.FramewiseDisplacement.fillna(0)[4:]),
                             list(confounds.aCompCor0[4:]),
                             list(confounds.aCompCor1[4:]),
                             list(confounds.aCompCor2[4:]),
                             list(confounds.aCompCor3[4:]),
                             list(confounds.aCompCor4[4:]),
                             list(confounds.aCompCor5[4:]),
                            ],
                 regressor_names=['FramewiseDisplacement',
                                  'aCompCor0',
                                  'aCompCor1',
                                  'aCompCor2',
                                  'aCompCor3',
                                  'aCompCor4',
                                  'aCompCor5'],
                  amplitudes=None,
                  tmod=None,
                  pmod=None)
           ]

    skip = mem.cache(fsl.ExtractROI)
    skip_results = skip(in_file=os.path.join(datadir, "derivatives", "fmriprep", 
                                            "sub-%s"%source_epi.subject, "ses-%s"%source_epi.session, "func", 
                                            "sub-%s_ses-%s_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz"%(source_epi.subject,
                                                                                                                               source_epi.session)),
                         t_min=4, t_size=-1, output_type="NIFTI")
    s = model.SpecifySPMModel()
    s.inputs.input_units = 'secs'
    s.inputs.functional_runs = skip_results.outputs.roi_file
    s.inputs.time_repetition = layout.get_metadata(source_epi.filename)["RepetitionTime"]
    s.inputs.high_pass_filter_cutoff = 128.
    s.inputs.concatenate_runs=False
    s.inputs.output_units='secs'
    s.inputs.subject_info = info
    specify_model_results = s.run()
    
    finger_cond = ['Finger','T', ['Finger'],[1]]
    foot_cond = ['Foot','T', ['Foot'],[1]]
    lips_cond = ['Lips','T', ['Lips'],[1]]
    lips_vs_others = ["Lips vs. others",'T', ['Finger', 'Foot', 'Lips'],[-0.5, -0.5, 1]]
    all_motor = ["All motor", 'F', [finger_cond, foot_cond, lips_cond]]

    contrasts=[finger_cond, foot_cond, lips_cond, lips_vs_others, all_motor]

    matlab_cmd = '/home/vagrant/spm12/run_spm12.sh /home/vagrant/mcr/v85/ script'
    spm.SPMCommand.set_mlab_paths(matlab_cmd=matlab_cmd, use_mcr=True)

    level1design = mem.cache(spm.model.Level1Design)
    level1design_results = level1design(interscan_interval = layout.get_metadata(source_epi.filename)["RepetitionTime"],
                                        bases = {'hrf':{'derivs': [1,1]}},
                                        session_info = specify_model_results.outputs.session_info,
                                        model_serial_correlations='AR(1)',
                                        timing_units='secs')
    
    estimatemodel = mem.cache(spm.model.EstimateModel)
    estimatemodel = estimatemodel(estimation_method={'Classical': 1}, 
                                  spm_mat_file=level1design_results.outputs.spm_mat_file)
    
    estimatecontrasts = mem.cache(spm.model.EstimateContrast)
    estimatecontrasts = estimatecontrasts(contrasts=contrasts,
                                          spm_mat_file=estimatemodel.outputs.spm_mat_file,
                                          beta_images=estimatemodel.outputs.beta_images,
                                          residual_image=estimatemodel.outputs.residual_image)
    
    copes[source_epi.subject] = list(estimatecontrasts.outputs.con_images)


170216-18:32:44,709 workflow INFO:
	 Executing node 2359f664e9b150aad79ffa88c75e2a1f in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/2359f664e9b150aad79ffa88c75e2a1f
170216-18:32:44,720 workflow INFO:
	 Collecting precomputed outputs
170216-18:32:44,749 workflow INFO:
	 Executing node bd8e0f27048667f9169fee892c21477c in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/bd8e0f27048667f9169fee892c21477c
170216-18:33:36,289 workflow INFO:
	 Executing node 4d680b751ece7961f835ef78a478d0a9 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/4d680b751ece7961f835ef78a478d0a9
170216-18:34:43,202 workflow INFO:
	 Executing node 1decaa5e1b49d020294b23111867886e in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/1decaa5e1b49d020294b23111867886e
170216-18:35:43,495 workflow INFO:
	 Executing node f29ac7493b47861a406bef80568ddf22 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/f29ac7493b47861a406bef80568ddf22
170216-18:35:43,515 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-02/ses-test/func/sub-02_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/f29ac7493b47861a406bef80568ddf22/sub-02_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:35:48,693 workflow INFO:
	 Executing node 8ebd6869caf8b26d5c21cb54db102264 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/8ebd6869caf8b26d5c21cb54db102264
170216-18:36:43,818 workflow INFO:
	 Executing node 25a53548f9e6f0aa1aca2f1d8e9ab29a in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/25a53548f9e6f0aa1aca2f1d8e9ab29a
170216-18:37:50,558 workflow INFO:
	 Executing node f2b1887265dfdee7d7228976af10bfba in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/f2b1887265dfdee7d7228976af10bfba
170216-18:38:50,614 workflow INFO:
	 Executing node c27ad5a9a7c91e5184bf5dd0b1d6bdfe in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/c27ad5a9a7c91e5184bf5dd0b1d6bdfe
170216-18:38:50,625 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-03/ses-test/func/sub-03_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/c27ad5a9a7c91e5184bf5dd0b1d6bdfe/sub-03_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:38:55,316 workflow INFO:
	 Executing node 4c20f42fe81cc18c301130f3a500f67a in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/4c20f42fe81cc18c301130f3a500f67a
170216-18:39:45,796 workflow INFO:
	 Executing node 2e3f732fd0e3027bb10c1724cd4f99c0 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/2e3f732fd0e3027bb10c1724cd4f99c0
170216-18:40:48,426 workflow INFO:
	 Executing node 29466fce8945ce410c4a7ff1566ffac6 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/29466fce8945ce410c4a7ff1566ffac6
170216-18:41:48,208 workflow INFO:
	 Executing node b9b633f55be93d51b13128fa18ff1105 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/b9b633f55be93d51b13128fa18ff1105
170216-18:41:48,226 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-04/ses-test/func/sub-04_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/b9b633f55be93d51b13128fa18ff1105/sub-04_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:41:52,549 workflow INFO:
	 Executing node a559ba9269b87e23267fcce02248d389 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/a559ba9269b87e23267fcce02248d389
170216-18:42:45,560 workflow INFO:
	 Executing node 168a38a26688f7b3e4f7d957ca81e7ed in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/168a38a26688f7b3e4f7d957ca81e7ed
170216-18:43:48,914 workflow INFO:
	 Executing node c9e580ad5965288fe17f67d727c0c6e4 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/c9e580ad5965288fe17f67d727c0c6e4
170216-18:44:46,377 workflow INFO:
	 Executing node 31c6cd754a19387e3f1e4e1e4a58d215 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/31c6cd754a19387e3f1e4e1e4a58d215
170216-18:44:46,388 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-05/ses-test/func/sub-05_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/31c6cd754a19387e3f1e4e1e4a58d215/sub-05_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:44:50,552 workflow INFO:
	 Executing node e210133e6ed348d314e19ea42f2b035d in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/e210133e6ed348d314e19ea42f2b035d
170216-18:45:40,434 workflow INFO:
	 Executing node dff433fc6e2cd7eaab89db739a081db7 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/dff433fc6e2cd7eaab89db739a081db7
170216-18:46:46,370 workflow INFO:
	 Executing node 632ed532f2d7e883bc07d7907ec2ac11 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/632ed532f2d7e883bc07d7907ec2ac11
170216-18:47:45,438 workflow INFO:
	 Executing node 90e73a4efdfb9677c5c883f59a536b34 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/90e73a4efdfb9677c5c883f59a536b34
170216-18:47:45,443 workflow INFO:
	 Collecting precomputed outputs
170216-18:47:45,473 workflow INFO:
	 Executing node 12b40968ccf5bc516f1a1f687232ea36 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/12b40968ccf5bc516f1a1f687232ea36
170216-18:48:36,155 workflow INFO:
	 Executing node 51d0c68427ba0f038ebe1c06dac88ff2 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/51d0c68427ba0f038ebe1c06dac88ff2
170216-18:49:39,988 workflow INFO:
	 Executing node a3c42bd9d656040f302f8fd6fc1a05bc in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/a3c42bd9d656040f302f8fd6fc1a05bc
170216-18:50:40,911 workflow INFO:
	 Executing node db9f6835b32d4c5f407472b072f4fd6f in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/db9f6835b32d4c5f407472b072f4fd6f
170216-18:50:40,919 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-07/ses-test/func/sub-07_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/db9f6835b32d4c5f407472b072f4fd6f/sub-07_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:50:45,585 workflow INFO:
	 Executing node f7e473d241b4b227bb34441895c79663 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/f7e473d241b4b227bb34441895c79663
170216-18:51:38,251 workflow INFO:
	 Executing node 32bd4881ebcfe907ca79c9a1375ebf8e in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/32bd4881ebcfe907ca79c9a1375ebf8e
170216-18:52:43,105 workflow INFO:
	 Executing node f565750892ffa1e2268fd403442bddb6 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/f565750892ffa1e2268fd403442bddb6
170216-18:53:40,354 workflow INFO:
	 Executing node 32313043be530cbf1969da07cb70e4e2 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/32313043be530cbf1969da07cb70e4e2
170216-18:53:40,364 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-08/ses-test/func/sub-08_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/32313043be530cbf1969da07cb70e4e2/sub-08_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:53:45,71 workflow INFO:
	 Executing node 0e8891a7b45249e16b5856360dacdf80 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/0e8891a7b45249e16b5856360dacdf80
170216-18:54:37,894 workflow INFO:
	 Executing node 4e2eaf345f704e18740ccc65e0f670a3 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/4e2eaf345f704e18740ccc65e0f670a3
170216-18:55:44,912 workflow INFO:
	 Executing node 68e2bc07ae781db1f948377ac00b69d8 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/68e2bc07ae781db1f948377ac00b69d8
170216-18:56:48,152 workflow INFO:
	 Executing node a7465b49c7a2f9e3168865ad6917bdf2 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/a7465b49c7a2f9e3168865ad6917bdf2
170216-18:56:48,163 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-09/ses-test/func/sub-09_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/a7465b49c7a2f9e3168865ad6917bdf2/sub-09_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:56:52,828 workflow INFO:
	 Executing node 73cce6802deaab951ecff243aa8af359 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/73cce6802deaab951ecff243aa8af359
170216-18:57:45,784 workflow INFO:
	 Executing node 9b018cc91132a0f9439d58de93f7b1f9 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/9b018cc91132a0f9439d58de93f7b1f9
170216-18:58:51,328 workflow INFO:
	 Executing node fc02f6cc06c6b8d5f30f246ae8ecfeec in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/fc02f6cc06c6b8d5f30f246ae8ecfeec
170216-18:59:50,240 workflow INFO:
	 Executing node 1acd7a1b7512d858f96591e020c034d2 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/1acd7a1b7512d858f96591e020c034d2
170216-18:59:50,252 workflow INFO:
	 Running: fslroi /media/sf_ds000114_R2.0.1/derivatives/fmriprep/sub-10/ses-test/func/sub-10_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc.nii.gz /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-utils-ExtractROI/1acd7a1b7512d858f96591e020c034d2/sub-10_ses-test_task-fingerfootlips_bold_space-MNI152NLin2009cAsym_preproc_roi.nii 4 -1
170216-18:59:55,441 workflow INFO:
	 Executing node badce67eb41a6f8741fab0a094fb51a0 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-Level1Design/badce67eb41a6f8741fab0a094fb51a0
170216-19:00:48,822 workflow INFO:
	 Executing node 09f6c36e51c392b6edf1d80bd0f5d145 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateModel/09f6c36e51c392b6edf1d80bd0f5d145
170216-19:01:55,410 workflow INFO:
	 Executing node 6e6e834ba195e628e982973f0d4c7112 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-spm-model-EstimateContrast/6e6e834ba195e628e982973f0d4c7112

In [21]:
smooth_copes = []
for k,v in copes.items():
    smooth_cope = nilearn.image.smooth_img(v[3], 8)
    smooth_copes.append(smooth_cope)
    nilearn.plotting.plot_glass_brain(smooth_cope,
                                      display_mode='lyrz', 
                                      colorbar=True, 
                                      plot_abs=False)



In [22]:
nilearn.plotting.plot_glass_brain(nilearn.image.mean_img(smooth_copes),
                                  display_mode='lyrz', 
                                  colorbar=True, 
                                  plot_abs=False)


Out[22]:
<nilearn.plotting.displays.LYRZProjector at 0x7efeed538588>

In [23]:
brainmasks = glob.glob(os.path.join(datadir, "derivatives", "fmriprep", "sub-*", "ses-test", "func", "*task-fingerfootlips_*space-MNI152NLin2009cAsym*_brainmask.nii*"))

for mask in brainmasks:
    nilearn.plotting.plot_roi(mask)
    
mean_mask = nilearn.image.mean_img(brainmasks)
nilearn.plotting.plot_stat_map(mean_mask)
group_mask = nilearn.image.math_img("a>=0.95", a=mean_mask)
nilearn.plotting.plot_roi(group_mask)


Out[23]:
<nilearn.plotting.displays.OrthoSlicer at 0x7efef5256240>

In [25]:
!mkdir -p {datadir}/derivatives/custom_modelling_spm/

copes_concat = nilearn.image.concat_imgs(smooth_copes, auto_resample=True)
copes_concat.to_filename(os.path.join(datadir, "derivatives", "custom_modelling_spm", "lips_vs_others_copes.nii.gz"))

group_mask = nilearn.image.resample_to_img(group_mask, copes_concat, interpolation='nearest')
group_mask.to_filename(os.path.join(datadir, "derivatives", "custom_modelling_spm", "group_mask.nii.gz"))


/home/vagrant/miniconda3/lib/python3.5/site-packages/nilearn/_utils/niimg_conversions.py:144: UserWarning: Affine is different across subjects. Realignement on first subject affine forced
  warnings.warn('Affine is different across subjects.'

In [27]:
randomise = mem.cache(fsl.Randomise)
randomise_results = randomise(in_file=os.path.join(datadir, "derivatives", "custom_modelling_spm", "lips_vs_others_copes.nii.gz"),
                              mask=os.path.join(datadir, "derivatives", "custom_modelling_spm", "group_mask.nii.gz"),
                              one_sample_group_mean=True,
                              tfce=True,
                              vox_p_values=True,
                              num_perm=500)
randomise_results.outputs


170216-19:13:50,390 workflow INFO:
	 Executing node bd4540e89d346b9cada734078daa2af6 in dir: /home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-model-Randomise/bd4540e89d346b9cada734078daa2af6
170216-19:13:50,401 workflow INFO:
	 Running: randomise -i /media/sf_ds000114_R2.0.1/derivatives/custom_modelling_spm/lips_vs_others_copes.nii.gz -o "tbss_" -m /media/sf_ds000114_R2.0.1/derivatives/custom_modelling_spm/group_mask.nii.gz -n 500 -1 -T -x
170216-19:13:50,448 interface INFO:
	 stdout 2017-02-16T19:13:50.448118:randomise options: -i /media/sf_ds000114_R2.0.1/derivatives/custom_modelling_spm/lips_vs_others_copes.nii.gz -o tbss_ -m /media/sf_ds000114_R2.0.1/derivatives/custom_modelling_spm/group_mask.nii.gz -n 500 -1 -T -x 
170216-19:13:50,951 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Loading Data: 
170216-19:13:50,951 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Data loaded
170216-19:13:50,952 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:One-sample design detected; sign-flipping instead of permuting.
170216-19:13:50,953 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:1024 sign-flips required for exhaustive test of t-test 1
170216-19:13:50,953 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Doing 500 random permutations
170216-19:13:50,954 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 1 (Unpermuted data)
170216-19:13:50,954 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 2
170216-19:13:50,955 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 3
170216-19:13:50,955 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 4
170216-19:13:50,956 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 5
170216-19:13:50,957 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 6
170216-19:13:50,957 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 7
170216-19:13:50,958 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 8
170216-19:13:50,958 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 9
170216-19:13:50,959 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 10
170216-19:13:50,959 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 11
170216-19:13:50,960 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 12
170216-19:13:50,962 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 13
170216-19:13:50,963 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 14
170216-19:13:50,963 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 15
170216-19:13:50,964 interface INFO:
	 stdout 2017-02-16T19:13:50.950940:Starting permutation 16
170216-19:13:51,466 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 17
170216-19:13:51,467 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 18
170216-19:13:51,468 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 19
170216-19:13:51,468 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 20
170216-19:13:51,469 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 21
170216-19:13:51,469 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 22
170216-19:13:51,470 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 23
170216-19:13:51,470 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 24
170216-19:13:51,471 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 25
170216-19:13:51,471 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 26
170216-19:13:51,472 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 27
170216-19:13:51,472 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 28
170216-19:13:51,473 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 29
170216-19:13:51,474 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 30
170216-19:13:51,475 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 31
170216-19:13:51,475 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 32
170216-19:13:51,476 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 33
170216-19:13:51,476 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 34
170216-19:13:51,477 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 35
170216-19:13:51,477 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 36
170216-19:13:51,478 interface INFO:
	 stdout 2017-02-16T19:13:51.466393:Starting permutation 37
170216-19:13:51,979 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 38
170216-19:13:51,980 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 39
170216-19:13:51,980 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 40
170216-19:13:51,981 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 41
170216-19:13:51,981 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 42
170216-19:13:51,982 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 43
170216-19:13:51,982 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 44
170216-19:13:51,989 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 45
170216-19:13:51,990 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 46
170216-19:13:51,991 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 47
170216-19:13:51,992 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 48
170216-19:13:51,992 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 49
170216-19:13:51,999 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 50
170216-19:13:52,0 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 51
170216-19:13:52,1 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 52
170216-19:13:52,2 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 53
170216-19:13:52,3 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 54
170216-19:13:52,3 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 55
170216-19:13:52,7 interface INFO:
	 stdout 2017-02-16T19:13:51.979430:Starting permutation 56
170216-19:13:52,509 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 57
170216-19:13:52,510 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 58
170216-19:13:52,510 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 59
170216-19:13:52,511 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 60
170216-19:13:52,518 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 61
170216-19:13:52,519 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 62
170216-19:13:52,520 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 63
170216-19:13:52,520 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 64
170216-19:13:52,521 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 65
170216-19:13:52,521 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 66
170216-19:13:52,530 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 67
170216-19:13:52,530 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 68
170216-19:13:52,531 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 69
170216-19:13:52,532 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 70
170216-19:13:52,532 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 71
170216-19:13:52,533 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 72
170216-19:13:52,542 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 73
170216-19:13:52,543 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 74
170216-19:13:52,544 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 75
170216-19:13:52,544 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 76
170216-19:13:52,545 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 77
170216-19:13:52,545 interface INFO:
	 stdout 2017-02-16T19:13:52.509125:Starting permutation 78
170216-19:13:53,47 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 79
170216-19:13:53,48 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 80
170216-19:13:53,49 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 81
170216-19:13:53,50 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 82
170216-19:13:53,50 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 83
170216-19:13:53,51 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 84
170216-19:13:53,58 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 85
170216-19:13:53,58 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 86
170216-19:13:53,59 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 87
170216-19:13:53,59 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 88
170216-19:13:53,60 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 89
170216-19:13:53,60 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 90
170216-19:13:53,69 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 91
170216-19:13:53,70 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 92
170216-19:13:53,70 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 93
170216-19:13:53,71 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 94
170216-19:13:53,71 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 95
170216-19:13:53,71 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 96
170216-19:13:53,72 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 97
170216-19:13:53,72 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 98
170216-19:13:53,73 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 99
170216-19:13:53,82 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 100
170216-19:13:53,83 interface INFO:
	 stdout 2017-02-16T19:13:53.047622:Starting permutation 101
170216-19:13:53,584 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 102
170216-19:13:53,586 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 103
170216-19:13:53,589 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 104
170216-19:13:53,599 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 105
170216-19:13:53,602 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 106
170216-19:13:53,606 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 107
170216-19:13:53,608 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 108
170216-19:13:53,616 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 109
170216-19:13:53,619 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 110
170216-19:13:53,622 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 111
170216-19:13:53,629 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 112
170216-19:13:53,631 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 113
170216-19:13:53,640 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 114
170216-19:13:53,651 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 115
170216-19:13:53,651 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 116
170216-19:13:53,652 interface INFO:
	 stdout 2017-02-16T19:13:53.584568:Starting permutation 117
170216-19:13:54,155 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 118
170216-19:13:54,156 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 119
170216-19:13:54,158 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 120
170216-19:13:54,166 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 121
170216-19:13:54,168 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 122
170216-19:13:54,169 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 123
170216-19:13:54,174 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 124
170216-19:13:54,178 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 125
170216-19:13:54,179 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 126
170216-19:13:54,181 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 127
170216-19:13:54,183 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 128
170216-19:13:54,189 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 129
170216-19:13:54,190 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 130
170216-19:13:54,192 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 131
170216-19:13:54,193 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 132
170216-19:13:54,206 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 133
170216-19:13:54,207 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 134
170216-19:13:54,207 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 135
170216-19:13:54,208 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 136
170216-19:13:54,208 interface INFO:
	 stdout 2017-02-16T19:13:54.154805:Starting permutation 137
170216-19:13:54,709 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 138
170216-19:13:54,710 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 139
170216-19:13:54,711 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 140
170216-19:13:54,711 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 141
170216-19:13:54,711 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 142
170216-19:13:54,712 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 143
170216-19:13:54,712 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 144
170216-19:13:54,713 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 145
170216-19:13:54,721 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 146
170216-19:13:54,722 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 147
170216-19:13:54,722 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 148
170216-19:13:54,723 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 149
170216-19:13:54,723 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 150
170216-19:13:54,724 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 151
170216-19:13:54,724 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 152
170216-19:13:54,730 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 153
170216-19:13:54,730 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 154
170216-19:13:54,731 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 155
170216-19:13:54,738 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 156
170216-19:13:54,739 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 157
170216-19:13:54,739 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 158
170216-19:13:54,740 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 159
170216-19:13:54,740 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 160
170216-19:13:54,746 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 161
170216-19:13:54,753 interface INFO:
	 stdout 2017-02-16T19:13:54.709630:Starting permutation 162
170216-19:13:55,255 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 163
170216-19:13:55,256 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 164
170216-19:13:55,257 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 165
170216-19:13:55,258 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 166
170216-19:13:55,258 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 167
170216-19:13:55,266 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 168
170216-19:13:55,267 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 169
170216-19:13:55,267 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 170
170216-19:13:55,268 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 171
170216-19:13:55,268 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 172
170216-19:13:55,277 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 173
170216-19:13:55,278 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 174
170216-19:13:55,278 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 175
170216-19:13:55,279 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 176
170216-19:13:55,279 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 177
170216-19:13:55,280 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 178
170216-19:13:55,280 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 179
170216-19:13:55,289 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 180
170216-19:13:55,290 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 181
170216-19:13:55,290 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 182
170216-19:13:55,291 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 183
170216-19:13:55,291 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 184
170216-19:13:55,292 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 185
170216-19:13:55,292 interface INFO:
	 stdout 2017-02-16T19:13:55.255139:Starting permutation 186
170216-19:13:55,794 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 187
170216-19:13:55,796 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 188
170216-19:13:55,797 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 189
170216-19:13:55,805 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 190
170216-19:13:55,817 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 191
170216-19:13:55,818 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 192
170216-19:13:55,819 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 193
170216-19:13:55,819 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 194
170216-19:13:55,834 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 195
170216-19:13:55,836 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 196
170216-19:13:55,837 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 197
170216-19:13:55,838 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 198
170216-19:13:55,841 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 199
170216-19:13:55,844 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 200
170216-19:13:55,853 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 201
170216-19:13:55,855 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 202
170216-19:13:55,857 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 203
170216-19:13:55,858 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 204
170216-19:13:55,859 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 205
170216-19:13:55,860 interface INFO:
	 stdout 2017-02-16T19:13:55.794098:Starting permutation 206
170216-19:13:56,363 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 207
170216-19:13:56,364 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 208
170216-19:13:56,365 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 209
170216-19:13:56,367 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 210
170216-19:13:56,368 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 211
170216-19:13:56,369 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 212
170216-19:13:56,370 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 213
170216-19:13:56,372 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 214
170216-19:13:56,373 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 215
170216-19:13:56,375 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 216
170216-19:13:56,376 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 217
170216-19:13:56,376 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 218
170216-19:13:56,378 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 219
170216-19:13:56,380 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 220
170216-19:13:56,385 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 221
170216-19:13:56,388 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 222
170216-19:13:56,393 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 223
170216-19:13:56,395 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 224
170216-19:13:56,398 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 225
170216-19:13:56,399 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 226
170216-19:13:56,401 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 227
170216-19:13:56,405 interface INFO:
	 stdout 2017-02-16T19:13:56.363341:Starting permutation 228
170216-19:13:56,908 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 229
170216-19:13:56,911 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 230
170216-19:13:56,913 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 231
170216-19:13:56,915 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 232
170216-19:13:56,918 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 233
170216-19:13:56,920 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 234
170216-19:13:56,922 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 235
170216-19:13:56,925 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 236
170216-19:13:56,929 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 237
170216-19:13:56,933 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 238
170216-19:13:56,935 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 239
170216-19:13:56,941 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 240
170216-19:13:56,943 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 241
170216-19:13:56,946 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 242
170216-19:13:56,948 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 243
170216-19:13:56,958 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 244
170216-19:13:56,961 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 245
170216-19:13:56,963 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 246
170216-19:13:56,965 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 247
170216-19:13:56,967 interface INFO:
	 stdout 2017-02-16T19:13:56.908287:Starting permutation 248
170216-19:13:57,469 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 249
170216-19:13:57,471 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 250
170216-19:13:57,473 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 251
170216-19:13:57,475 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 252
170216-19:13:57,477 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 253
170216-19:13:57,479 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 254
170216-19:13:57,480 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 255
170216-19:13:57,482 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 256
170216-19:13:57,482 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 257
170216-19:13:57,484 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 258
170216-19:13:57,486 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 259
170216-19:13:57,489 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 260
170216-19:13:57,491 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 261
170216-19:13:57,493 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 262
170216-19:13:57,497 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 263
170216-19:13:57,499 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 264
170216-19:13:57,501 interface INFO:
	 stdout 2017-02-16T19:13:57.469309:Starting permutation 265
170216-19:13:58,4 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 266
170216-19:13:58,6 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 267
170216-19:13:58,9 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 268
170216-19:13:58,11 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 269
170216-19:13:58,13 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 270
170216-19:13:58,14 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 271
170216-19:13:58,15 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 272
170216-19:13:58,17 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 273
170216-19:13:58,19 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 274
170216-19:13:58,21 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 275
170216-19:13:58,25 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 276
170216-19:13:58,27 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 277
170216-19:13:58,30 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 278
170216-19:13:58,33 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 279
170216-19:13:58,35 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 280
170216-19:13:58,37 interface INFO:
	 stdout 2017-02-16T19:13:58.004112:Starting permutation 281
170216-19:13:58,540 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 282
170216-19:13:58,542 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 283
170216-19:13:58,544 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 284
170216-19:13:58,546 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 285
170216-19:13:58,548 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 286
170216-19:13:58,578 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 287
170216-19:13:58,579 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 288
170216-19:13:58,581 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 289
170216-19:13:58,582 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 290
170216-19:13:58,583 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 291
170216-19:13:58,585 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 292
170216-19:13:58,586 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 293
170216-19:13:58,587 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 294
170216-19:13:58,589 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 295
170216-19:13:58,591 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 296
170216-19:13:58,593 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 297
170216-19:13:58,597 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 298
170216-19:13:58,599 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 299
170216-19:13:58,601 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 300
170216-19:13:58,602 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 301
170216-19:13:58,605 interface INFO:
	 stdout 2017-02-16T19:13:58.539920:Starting permutation 302
170216-19:13:59,109 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 303
170216-19:13:59,111 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 304
170216-19:13:59,113 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 305
170216-19:13:59,113 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 306
170216-19:13:59,114 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 307
170216-19:13:59,115 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 308
170216-19:13:59,116 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 309
170216-19:13:59,118 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 310
170216-19:13:59,119 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 311
170216-19:13:59,120 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 312
170216-19:13:59,121 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 313
170216-19:13:59,122 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 314
170216-19:13:59,123 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 315
170216-19:13:59,124 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 316
170216-19:13:59,130 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 317
170216-19:13:59,132 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 318
170216-19:13:59,134 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 319
170216-19:13:59,135 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 320
170216-19:13:59,136 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 321
170216-19:13:59,137 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 322
170216-19:13:59,138 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 323
170216-19:13:59,144 interface INFO:
	 stdout 2017-02-16T19:13:59.109615:Starting permutation 324
170216-19:13:59,647 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 325
170216-19:13:59,649 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 326
170216-19:13:59,651 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 327
170216-19:13:59,653 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 328
170216-19:13:59,655 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 329
170216-19:13:59,656 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 330
170216-19:13:59,657 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 331
170216-19:13:59,660 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 332
170216-19:13:59,661 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 333
170216-19:13:59,666 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 334
170216-19:13:59,668 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 335
170216-19:13:59,670 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 336
170216-19:13:59,671 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 337
170216-19:13:59,672 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 338
170216-19:13:59,677 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 339
170216-19:13:59,680 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 340
170216-19:13:59,683 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 341
170216-19:13:59,684 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 342
170216-19:13:59,687 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 343
170216-19:13:59,689 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 344
170216-19:13:59,691 interface INFO:
	 stdout 2017-02-16T19:13:59.646899:Starting permutation 345
170216-19:14:00,196 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 346
170216-19:14:00,198 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 347
170216-19:14:00,200 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 348
170216-19:14:00,203 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 349
170216-19:14:00,205 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 350
170216-19:14:00,205 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 351
170216-19:14:00,208 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 352
170216-19:14:00,210 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 353
170216-19:14:00,211 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 354
170216-19:14:00,214 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 355
170216-19:14:00,216 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 356
170216-19:14:00,220 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 357
170216-19:14:00,222 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 358
170216-19:14:00,223 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 359
170216-19:14:00,224 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 360
170216-19:14:00,229 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 361
170216-19:14:00,231 interface INFO:
	 stdout 2017-02-16T19:14:00.195793:Starting permutation 362
170216-19:14:00,733 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 363
170216-19:14:00,735 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 364
170216-19:14:00,737 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 365
170216-19:14:00,738 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 366
170216-19:14:00,740 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 367
170216-19:14:00,741 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 368
170216-19:14:00,742 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 369
170216-19:14:00,743 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 370
170216-19:14:00,745 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 371
170216-19:14:00,745 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 372
170216-19:14:00,747 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 373
170216-19:14:00,748 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 374
170216-19:14:00,749 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 375
170216-19:14:00,752 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 376
170216-19:14:00,753 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 377
170216-19:14:00,755 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 378
170216-19:14:00,757 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 379
170216-19:14:00,758 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 380
170216-19:14:00,760 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 381
170216-19:14:00,761 interface INFO:
	 stdout 2017-02-16T19:14:00.733372:Starting permutation 382
170216-19:14:01,266 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 383
170216-19:14:01,268 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 384
170216-19:14:01,269 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 385
170216-19:14:01,270 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 386
170216-19:14:01,271 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 387
170216-19:14:01,272 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 388
170216-19:14:01,273 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 389
170216-19:14:01,274 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 390
170216-19:14:01,275 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 391
170216-19:14:01,276 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 392
170216-19:14:01,277 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 393
170216-19:14:01,278 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 394
170216-19:14:01,279 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 395
170216-19:14:01,280 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 396
170216-19:14:01,281 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 397
170216-19:14:01,285 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 398
170216-19:14:01,287 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 399
170216-19:14:01,288 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 400
170216-19:14:01,289 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 401
170216-19:14:01,290 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 402
170216-19:14:01,291 interface INFO:
	 stdout 2017-02-16T19:14:01.266459:Starting permutation 403
170216-19:14:01,793 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 404
170216-19:14:01,795 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 405
170216-19:14:01,796 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 406
170216-19:14:01,797 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 407
170216-19:14:01,799 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 408
170216-19:14:01,801 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 409
170216-19:14:01,803 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 410
170216-19:14:01,803 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 411
170216-19:14:01,805 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 412
170216-19:14:01,806 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 413
170216-19:14:01,809 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 414
170216-19:14:01,811 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 415
170216-19:14:01,812 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 416
170216-19:14:01,813 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 417
170216-19:14:01,818 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 418
170216-19:14:01,819 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 419
170216-19:14:01,820 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 420
170216-19:14:01,822 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 421
170216-19:14:01,824 interface INFO:
	 stdout 2017-02-16T19:14:01.792942:Starting permutation 422
170216-19:14:02,332 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 423
170216-19:14:02,333 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 424
170216-19:14:02,334 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 425
170216-19:14:02,336 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 426
170216-19:14:02,337 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 427
170216-19:14:02,338 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 428
170216-19:14:02,339 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 429
170216-19:14:02,340 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 430
170216-19:14:02,342 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 431
170216-19:14:02,343 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 432
170216-19:14:02,344 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 433
170216-19:14:02,345 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 434
170216-19:14:02,346 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 435
170216-19:14:02,347 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 436
170216-19:14:02,347 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 437
170216-19:14:02,348 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 438
170216-19:14:02,350 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 439
170216-19:14:02,351 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 440
170216-19:14:02,352 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 441
170216-19:14:02,353 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 442
170216-19:14:02,354 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 443
170216-19:14:02,355 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 444
170216-19:14:02,356 interface INFO:
	 stdout 2017-02-16T19:14:02.331920:Starting permutation 445
170216-19:14:02,857 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 446
170216-19:14:02,859 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 447
170216-19:14:02,860 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 448
170216-19:14:02,861 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 449
170216-19:14:02,862 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 450
170216-19:14:02,863 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 451
170216-19:14:02,864 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 452
170216-19:14:02,865 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 453
170216-19:14:02,866 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 454
170216-19:14:02,867 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 455
170216-19:14:02,868 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 456
170216-19:14:02,869 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 457
170216-19:14:02,870 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 458
170216-19:14:02,871 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 459
170216-19:14:02,877 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 460
170216-19:14:02,879 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 461
170216-19:14:02,880 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 462
170216-19:14:02,881 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 463
170216-19:14:02,882 interface INFO:
	 stdout 2017-02-16T19:14:02.857710:Starting permutation 464
170216-19:14:03,384 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 465
170216-19:14:03,386 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 466
170216-19:14:03,387 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 467
170216-19:14:03,388 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 468
170216-19:14:03,389 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 469
170216-19:14:03,390 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 470
170216-19:14:03,391 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 471
170216-19:14:03,392 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 472
170216-19:14:03,393 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 473
170216-19:14:03,394 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 474
170216-19:14:03,395 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 475
170216-19:14:03,396 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 476
170216-19:14:03,397 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 477
170216-19:14:03,398 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 478
170216-19:14:03,400 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 479
170216-19:14:03,405 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 480
170216-19:14:03,406 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 481
170216-19:14:03,407 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 482
170216-19:14:03,408 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 483
170216-19:14:03,410 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 484
170216-19:14:03,411 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 485
170216-19:14:03,412 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 486
170216-19:14:03,413 interface INFO:
	 stdout 2017-02-16T19:14:03.384303:Starting permutation 487
170216-19:14:03,916 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 488
170216-19:14:03,918 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 489
170216-19:14:03,920 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 490
170216-19:14:03,921 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 491
170216-19:14:03,922 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 492
170216-19:14:03,923 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 493
170216-19:14:03,924 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 494
170216-19:14:03,925 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 495
170216-19:14:03,927 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 496
170216-19:14:03,929 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 497
170216-19:14:03,929 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 498
170216-19:14:03,931 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 499
170216-19:14:03,932 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Starting permutation 500
170216-19:14:03,934 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Critical Value for: tbss__vox_corrp_tstat1 is: 9.00788
170216-19:14:03,935 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Critical Value for: tbss__tfce_corrp_tstat1 is: 6364.8
170216-19:14:03,936 interface INFO:
	 stdout 2017-02-16T19:14:03.916431:Finished, exiting.
Out[27]:
f_corrected_p_files = []
f_p_files = []
fstat_files = []
t_corrected_p_files = ['/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-model-Randomise/bd4540e89d346b9cada734078daa2af6/tbss__tfce_corrp_tstat1.nii.gz']
t_p_files = []
tstat_files = ['/home/vagrant/fmri-analysis-vm/analysis/firstlevel/nipype_mem/nipype-interfaces-fsl-model-Randomise/bd4540e89d346b9cada734078daa2af6/tbss__tstat1.nii.gz']

In [29]:
fig = nilearn.plotting.plot_stat_map(randomise_results.outputs.tstat_files[0], alpha=0.5, cut_coords=(-21, 0, 18))
fig.add_contours(randomise_results.outputs.t_corrected_p_files[0], levels=[0.95], colors='w')



In [ ]: